package app.modules.common.config;

import jasmine.framework.database.mybatisplus.tenant.IgnoreTableStrategy;
import jasmine.framework.database.mybatisplus.tenant.TenantConfigProcessor;
import org.springframework.stereotype.Component;

/**
 * @author mh.z
 */
@Component
public class AppTableConfig implements TenantConfigProcessor {

    @Override
    public void ignoreTable(IgnoreTableStrategy strategy) {
        strategy.addIgnoreTable("dual");
        strategy.addIgnoreTable("sys_value_set");
        strategy.addIgnoreTable("sys_value_item");
        strategy.addIgnoreTable("sys_profile_item");
        strategy.addIgnoreTable("sys_profile_option");
        strategy.addIgnoreTable("sys_profile_value");
        strategy.addIgnoreTable("sys_value_set_i18n");
        strategy.addIgnoreTable("sys_value_item_i18n");
        strategy.addIgnoreTable("sys_profile_item_i18n");
        strategy.addIgnoreTable("sys_profile_option_i18n");
        strategy.addIgnoreTable("sys_profile_value_i18n");
    }

}
